package tpoo;
import java.util.List;


public class Echiquier {
	List<Piece> listPieces;

	public Echiquier() {
		super();
	}

	public Echiquier(List<Piece> listPieces) {
		super();
		this.listPieces = listPieces;
	}
	
	public boolean addPiece(Piece piece){
		return this.listPieces.add(piece);
	}
	
	public boolean removePiece(Piece piece){
		return this.listPieces.remove(piece);
	}
	
	public boolean containsPiece(Piece piece){
		return this.listPieces.contains(piece);
	}
		
}
